import request from '@/utils/request'

function getUATSyncLogs(params) {
  return request({
    url: 'api/uatsynclogstask/page',
    method: 'get',
    params
  })
}

function getHotsPareDele(params) {
  return request({
    url: '/api/hotsparedele/page',
    method: 'get',
    params
  })
}

function getalogs(params) {
  return request({
    url: 'api/uatsynclogs/page',
    method: 'get',
    params
  })
}

function addsubmit(data) {
  return request({
    url: 'api/syncruleconf/handMoveSync',
    method: 'post',
    data
  })
}

function addSubmitLibTable(data) {
  return request({
    url: 'api/syncruleconf/uATSyncSearchDatabase',
    method: 'post',
    data
  })
}

function addlist(data) {
  return request({
    url: 'api/syncruleconf/uATSyncSearch',
    method: 'post',
    data
  })
}

function getUatBlackList(params) {
  return request({
    url: 'api/uatblacklist/page',
    method: 'get',
    params
  })
}

function addUatBlackList(data) {
  return request({
    url: 'api/uatblacklist',
    method: 'post',
    data
  })
}

function editUatBlackList(data) {
  return request({
    url: 'api/uatblacklist',
    method: 'put',
    data
  })
}

export default { getUATSyncLogs, getHotsPareDele, getalogs, addsubmit, addlist, getUatBlackList, addUatBlackList, editUatBlackList, addSubmitLibTable }
